<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
   <c:set var="user" value="张三1111" scope="page"/>
   <c:out value="${user }"/>
   <c:set var="sex" value="男" scope="page"/>
   <c:set var="day" value="0" scope="page"/>
   <c:if test="${sex eq '男' }">
     <h1>${sex}</h1>
   </c:if>
   
   <c:if test="${sex eq '女' }">
     <h1>${sex}</h1>
   </c:if>
   
   <c:choose>
     <c:when test="${day==0}">
       <p>星期一</p>
     </c:when>
      <c:when test="${day==1}">
       <p>星期二</p>
     </c:when>
      <c:when test="${day==2}">
       <p>星期三</p>
     </c:when>
     <c:otherwise>
         <p>星期天</p>
     </c:otherwise>
   </c:choose>
   
   <c:forEach begin="1" end="10" step="1" varStatus="status">
      ${status.index }
   </c:forEach>
   <c:forEach var="user" items="${list }">
      ${user.id }
   </c:forEach>
   
   <% pageContext.setAttribute("str", "k,2,3,4,5,d"); %>
   
   <c:forTokens items="${str }" delims="," var="s">
      ${s }
   </c:forTokens>
   
   
</body>
</html>